public class Toys
{
	private static String[] sAllToys;
	private static String[] sAllOwner;
	private String sMyName;
	private int sizearray;
	
	
	
	public Toys(int size, String sMyName)
	{
		this.sMyName = sMyName;
		sAllToys = new String[size];
		sAllOwner = new String[size];
		this.sizearray = size;
	}
	
	public void addToy(String sToy, String sOwner)
	{
		int l=0;
		
		while(l<sAllOwner.length && sAllOwner[l] != null)
		{
			l++;
		}
		
		if(l>=sizearray)
			l=0;
			
		sAllToys[l] = sToy;
		sAllOwner[l] = sOwner;
			
		
	}
	
	public void removeToy (int index)
	{
		System.out.println("Toy"+sAllToys[index]+"von"+sAllOwner[index]+" removed!");
		sAllToys[index] = null;
		sAllOwner[index] = null;
	}
	
	public String getName()
	{
		return sMyName;
	}
	
	
	public void printAllToys()
	{
		int l = 0;
		
		for (l=0;l<sizearray;l++)
		{
			System.out.println("Owner: "+sAllOwner[l]+"\tToys: "+sAllToys[l]);
		}
	}
		
	
	
	public  void printToysOf(String sName)
	{
		int l;
		
		l = 0;
	
		do{
		if (sAllOwner[l] == sName)
		{
			System.out.println(sAllOwner[l] + "'s Toy: "+sAllToys[l]+"\n");
			l++;
		}
		else
		l++;
		}while(l<sizearray);
	}
	
}